﻿using UnityEngine.Playables;

namespace Pvp.Timeline
{
    /// <summary>
    /// 限制移动和技能
    /// </summary>
    public class RoleLimitControlBehaviour : BaseRolePlayableBehaviour
    {
        public bool limitMoveFlag;          //限制移动
        public bool limitSkillFireFlag;     //限制技能释放

        public override void OnBehaviourPlay(Playable playable, FrameData info)
        {
            // if(limitMoveFlag)
            //     Rolexxx.Control.MoveControlLockFlag = true;
            // if (limitSkillFireFlag)
            //     Rolexxx.Control.SkillFireLockFlag = true;
        }

        public override void OnBehaviourPause(Playable playable, FrameData info)
        {
            // if(limitMoveFlag)
            //     Rolexxx.Control.MoveControlLockFlag = false;
            // if (limitSkillFireFlag)
            //     Rolexxx.Control.SkillFireLockFlag = false;
        }
    }
}

